#include <iostream>
using namespace std;

int main()
{
    int *p1;
//    cout<<p1;
    int i =5;
    int *pi=&i;
    cout<<pi<<" "<<&i<<endl;
    int j=6;
//    *pi=j;  // *pi等价于i  i=j;
//    cout<<i<<endl;
    pi=&j;  // 让pi指向j
    cout<<*pi<<endl;
    int l[5]={11,22,33,44,55};
    int *pl1=l;
    int *pl2=&l[0];
    cout<<pl1<<pl2<<endl;
    cout<<*pl1<<endl;
//    pl1++;
//    cout<<*pl1<<endl;
    cout<<sizeof l<<endl;  // 20
    cout<<sizeof pl1<<endl;  // 4
    cout<<pl1[3];
    return 0;
}

